/* 案例详情页特定样式 */
p, ul{color: #6b7280;line-height: 1.7;}
.case-overview li{
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.case-overview li::before{
    font-family: "Font Awesome 6 Free";
    content: '\f058';
    display: inline-block;
    font-weight: 600;
}
.challenges li::before{color: #ef4444;}
.solutions li::before{color: #3b82f6}
.case-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    /*padding: 120px 0 60px;*/
    height: 42.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.case-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://p11-doubao-search-sign.byteimg.com/labis/image/cf017cc93d08ba29ff35e9242ae158e9~tplv-be4g95zd3a-image.jpeg?lk3s=feb11e32&x-expires=1794644838&x-signature=ghH4iq3s2LOwWCgBXmtiRhQnKUU%3D') center/cover;
    opacity: 0.8;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

.case-meta-info {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dbeafe;
}

.case-overview {
    background: #f8fafc;
    padding: 60px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.overview-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.overview-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.overview-title i {
    color: #3b82f6;
    font-size: 24px;
}

.grid-2col{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.case-details {
    padding: 60px 0;
}

.detail-section {
    margin-bottom: 60px;
}

.detail-section .p-6{
    padding: 2rem;
}
.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-title i {
    color: #3b82f6;
    font-size: 32px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.process-step {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.process-step::after {
    content: "→";
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    color: #1f2937;
    font-weight: bold;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}
/* 图片对比组件 原生CSS | clip-path裁切方案，图片始终100%尺寸 */
.img-compare-wrap {width:100%;}
.img-compare-container {
    width:100%;
    height:380px;
    position:relative;
    overflow:hidden;
    border-radius:12px;
    user-select:none;
    --cut-per:50%; /* CSS变量控制裁切比例 */
}
.img-compare-after,.img-compare-before {
    position:absolute;
    top:0;left:0;
    width:100%;height:100%;
}
.img-compare-after img,.img-compare-before img {
    width:100%;height:100%;
    object-fit:cover;
    display:block;
}
/* 关键：before不缩小宽度，用clip从右边裁掉不可见部分 */
.img-compare-before {
    clip-path: inset(0 calc(100% - var(--cut-per)) 0 0);
}
/* 中间拖拽分割器 */
.img-compare-slider {
    position:absolute;
    top:0;left:var(--cut-per);
    width:0;height:100%;
    transform:translateX(-50%);
    cursor:ew-resize;
    z-index:10;
}
.slider-line {
    width:2px;height:100%;
    background:#fff;
    box-shadow:0 0 6px #333;
}
.slider-drag-btn {
    position:absolute;
    top:50%;left:50%;
    transform:translate(-50%,-50%);
    width:36px;height:36px;
    background:#fff;
    border-radius:50%;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
    display:flex;align-items:center;justify-content:center;
    color:#2563eb;
}
/* 底部切换按钮 */
.compare-btn-group {
    display:flex;gap:10px;margin-top:16px;flex-wrap:wrap;
}
.compare-btn-group button {
    padding:6px 14px;border:1px solid #d1d5db;background:#fff;
    border-radius:6px;cursor:pointer;transition:.2s;
}
.compare-btn-group button.active {
    background:#2563eb;color:#fff;border-color:#2563eb;
}
/* 移动端高度自适应 */
@media(max-width:768px){
    .img-compare-container {height:280px;}
}
.case-data{display: flex;flex-direction: column;gap: 2rem;}
.equipment-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.equipment-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.equipment-item:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.equipment-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: #3b82f6;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.result-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.result-card:hover::before {
    animation: shine 1.5s ease;
}

.result-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.result-label {
    font-size: 16px;
    opacity: 0.9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 32px;
}

.testimonial {
    background: #f8fafc;
    padding: 60px 0;
}

.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content {
    font-size: 18px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b7280;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: #6b7280;
}

.related-cases {
    padding: 60px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.related-image {
    height: 160px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-meta {
    font-size: 14px;
    color: #6b7280;
}

/* 图片预览模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .overview-grid, .grid-2col {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipment-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .case-header {
        padding: 40px 0;
    }

    .case-meta-info {
        flex-direction: column;
        gap: 16px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-step::after {
        display: none;
    }

    .equipment-list {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 32px 20px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
}